﻿using System;

class Trapezoid
{
    static void Main()
    {
        //C# Fundamentals 2011/2012 Part 1 - Test Exam

        int number = int.Parse(Console.ReadLine());

        int bottomSide = number + number;
        int topSide = number;
        int rows = number + 1;

        int beforeDots = number - 1;
        int middleDots = number - 1;

        //print the first row
        Console.Write(new string('.', number));
        Console.Write(new string('*', number));        
        Console.WriteLine();

        //print the body of the trapezoid
        for (int i = 0; i < number - 1; i++)
        {
            Console.Write(new string('.', beforeDots));
            Console.Write('*');
            Console.Write(new string('.', middleDots));
            Console.Write('*');

            beforeDots--;
            middleDots++;
            Console.WriteLine();
        }

        //print the botom side row
        Console.WriteLine(new string('*', bottomSide));

    }
}

